package org.mengyun.tcctransaction.api;

/**
 * Created by wangmin on 2017/4/21.
 * 事务加上扩展信息, 用于标明consumer类型的 confirm,cancel 阶段是否存在
 */
public class ConsumerTransactionContextExtInfo extends TransactionContext {
    private final boolean hasConfirm;
    private final boolean hasCancel;

    public ConsumerTransactionContextExtInfo(boolean hasConfirm, boolean hasCancel) {
        this.hasConfirm = hasConfirm;
        this.hasCancel = hasCancel;
    }

    public boolean isHasConfirm() {
        return hasConfirm;
    }

    public boolean isHasCancel() {
        return hasCancel;
    }
}
